#include "UtilityPCH.h"

#include "UT_MaterialMatte.h"
#include "UT_BRDFLambertian.h"

using namespace Utility;
using namespace Memory;
//-------------------------------------------------------------------------
UT_MaterialMatte::UT_MaterialMatte()
	: UT_MaterialBase()
{

}
//-------------------------------------------------------------------------
UT_BSDF* UT_MaterialMatte::GetBSDF(const UT_DifferentialGeometry& rkDgGeom,const UT_DifferentialGeometry& rkDgShading,MM_MemoryArena& rkMemArena) const
{
	UT_DifferentialGeometry dgs;
	dgs = rkDgShading;

	UT_BSDF* pkBSDF = UT_ALLOC_BSDF(rkMemArena,UT_BSDF)(dgs,rkDgGeom.nn);

	pkBSDF->AddBxDF(UT_ALLOC_BSDF(rkMemArena,UT_BRDF_Lambertian)(UT_SpectrumUsed(0.5f)));
	return pkBSDF;
}
//-------------------------------------------------------------------------
